package com.teacher.service;

import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.wx.WechatUserUpdateDto;
import com.teacher.pojo.dto.wx.WxLoginDto;
import com.teacher.pojo.dto.wx.WxSignDto;
import com.teacher.pojo.entity.WechatUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.pojo.vo.WxLoginVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangzhuohang
 * @since 2024-03-14
 */
public interface IWechatUserService extends IService<WechatUser> {

    CommonResult<WxLoginVo> wxLogin(WxLoginDto wxLoginDto);

    CommonResult<WxLoginVo> wxLoginTest(String openId);

    CommonResult<String> updateInfo(WechatUserUpdateDto dto);

    CommonResult<String> updatePhoneNumber(String phoneNumber);

    CommonResult<String> updateSchool(String school);

    CommonResult<String> updateName(String name);

    CommonResult<String> updateImgUrl(String imgUrl);

    CommonResult<String> signInfo(WxSignDto wxSignDto);
}
